package com.googlecode.monitoring.webpages.model;

import com.googlecode.monitoring.model.EventTime;
import com.googlecode.monitoring.model.ItemToCheck;


/**
 * Author: Sergiy Doroshenko
 * Date: Aug 25, 2010
 * Time: 11:54:28 AM
 */
public class WebPageItemToCheck extends ItemToCheck {
    private WebPage webPage;

    public WebPageItemToCheck() {
    }

    public WebPageItemToCheck(String id, String name, WebPage webPage, EventTime eventTime) {
        this.id = id;
        this.name = name;
        this.webPage = webPage;
        this.eventTime = eventTime;
    }

    public WebPage getWebPage() {
        return webPage;
    }

    public void setWebPage(WebPage webPage) {
        this.webPage = webPage;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("WebPageItemToCheck");
        sb.append("{itemToCheck=").append(super.toString());
        sb.append("{webPage=").append(webPage);
        sb.append('}');
        return sb.toString();
    }
}
